package com.example.demo.mapper;

import com.example.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select id, user_name, password from user_info " +
            "where delete_flag = 0 and user_name = #{userName}")
    UserInfo queryUserInfoByName(String userName);
}
